package com.eportal.service.impl;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eportal.aop.LogAnnotation;
import com.eportal.api.MdOpenApi;
import com.eportal.api.MdOpenBaseJson;
import com.eportal.base.BaseDAO;
import com.eportal.domain.AppStore;
import com.eportal.domain.Sysopt;
import com.eportal.domain.TMirrorAgent;
import com.eportal.domain.ThridpayBill;
import com.eportal.exception.NotUniqueException;
import com.eportal.service.AppStoreService;
import com.eportal.service.TAgentService;
import com.eportal.service.ThridpayBillService;
import com.eportal.util.Config;
import com.framework.jqgrid.JqGridPager;

@Service("thridpayBillService")
public class ThridpayBillServiceImpl  implements ThridpayBillService{
	
	private Map<String, Object> result = new HashMap<String, Object>();
	private static Logger log = Logger.getLogger(ThridpayBillServiceImpl.class.getName());
	
	@Resource(name="dao")
	private BaseDAO dao;
	
	
	@Override
	public ThridpayBill getByPayId(String payid) throws NotUniqueException {
		String hql = "from ThridpayBill where payid='"+payid+"'";
		return (ThridpayBill) dao.getUniqueFirst(hql);
	}


	@Override
	public ThridpayBill get(Long sid) {
		return (ThridpayBill)dao.getById(ThridpayBill.class, sid);
	}
	
}
